using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ProjectManageSystemApi.DbEntity
{

	[JsonObject(MemberSerialization.OptIn), Table(Name = "sys_upgrade", DisableSyncStructure = true)]
	public partial class SysUpgrade {

		[JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		[JsonProperty, Column(Name = "app_name")]
		public string AppName { get; set; }

		[JsonProperty, Column(Name = "app_url", StringLength = 500)]
		public string AppUrl { get; set; }

		[JsonProperty, Column(Name = "create_time", DbType = "datetime")]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 是否强制更新0非强制1强制
		/// </summary>
		[JsonProperty, Column(Name = "is_force")]
		public int? IsForce { get; set; } = 0;

		/// <summary>
		/// 状态0未生效1已生效2已删除
		/// </summary>
		[JsonProperty, Column(Name = "state")]
		public int? State { get; set; } = 0;

		[JsonProperty, Column(Name = "version_desc", StringLength = 500)]
		public string VersionDesc { get; set; }

		/// <summary>
		/// 内部版本号
		/// </summary>
		[JsonProperty, Column(Name = "version_inside_no")]
		public int VersionInsideNo { get; set; }

		/// <summary>
		/// 对外显示的主版本号
		/// </summary>
		[JsonProperty, Column(Name = "version_main_no")]
		public string VersionMainNo { get; set; }

	}

}
